﻿using System;

namespace Anderson.NetLobby.MessageContent
{    
    /// <summary>
    /// 客户端提交：
    ///     playerId
    ///     actionId
    ///     roomId
    ///     actionType
    ///     actionResult = 2
    /// 服务器反馈（如果需要反馈的话）
    ///     playerId
    ///     actionId
    ///     roomId
    ///     actionType
    ///     actionResult = [0 or 1]
    /// </summary>
    [Serializable]
    public class MC_RoomAction
    {
        public long playerId;
        public long actionId;
        public long roomId;
        public uint actionResult;   //0 == failed, 1 == success, 2 == unset
        public uint attachInfo;

        public MC_RoomAction()
        {
            playerId = 0;
            actionId = 0;
            roomId = 0;
            actionResult = 1;
            attachInfo = 0;
        }
    }
}
